package com.zzyang.c2c.social.govern.report.dao.impl;

import com.zzyang.c2c.social.govern.report.dao.ReportTaskDAO;
import com.zzyang.c2c.social.govern.report.mapper.ReportTaskMapper;
import com.zzyang.c2c.social.govern.report.domain.ReportTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * ReportTaskDaoImpl
 *
 * @author zhuoziyang
 * @date 2021/7/26 21:55
 */
@Repository
public class ReportTaskDAOImpl implements ReportTaskDAO {

    @Autowired
    private ReportTaskMapper reportTaskMapper;

    @Override
    public void addReportTask(ReportTask reportTask) {
        reportTaskMapper.insert(reportTask);
    }

    @Override
    public ReportTask queryById(Long id) {
        return reportTaskMapper.selectById(id);
    }

    @Override
    public void updateVetoResultById(Long id, Integer vetoResult) {
        reportTaskMapper.updateVetoResultById(id,vetoResult);
    }

}
